import HttpHandler from "@/handler/HttpHandler";

export default class wareAreaApi {
    constructor() {
        this.http = new HttpHandler();
    }

    // 获取列表
    queryListPage(data) {
        let url = '/tie-mdm/warearea/queryListPage';
        return this.http.get(url, data);
    }
    // 获取列表不包含下级
    unQueryListPage(data) {
        let url = '/tie-mdm/warearea/unQueryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-mdm/warearea/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-mdm/warearea/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-mdm/warearea/queryDetail';
        return this.http.get(url, data);
    }
    // 禁用启用
    changeStatus(data) {
        let url = '/tie-mdm/warearea/changeStatus';
        return this.http.get(url, data);
    }
    // 删除
    delete(data) {
        let url = '/tie-mdm/warearea/delete';
        return this.http.post(url, data);
    }
    //批量启用
    enable(data){
        let url = '/tie-mdm/warearea/enable';
        return this.http.post(url,data);
    }
    //批量禁用
    disable(data){
        let url = '/tie-mdm/warearea/disable';
        return this.http.post(url,data);
    }
    //批量冻结
    frozen(data){
        let url = '/tie-mdm/warearea/frozen';
        return this.http.post(url,data);
    }
    //批量反冻结
    unFrozen(data){
        let url = '/tie-mdm/warearea/unFrozen';
        return this.http.post(url,data);
    }
    //获取仓库树结构
    queryHouseTree(data) {
        let url = '/tie-mdm/warearea/queryHouseTree';
        return this.http.get(url, data);
    }
    //获取库区树结构
    queryAreaTree(data) {
        let url = '/tie-mdm/warearea/queryAreaTree';
        return this.http.get(url, data);
    }


}
